/* 首页特定样式 */

/* 主横幅 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 50px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeIn 1s ease-in-out;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeIn 1.2s ease-in-out;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    animation: fadeIn 1.4s ease-in-out;
}

/* 功能介绍 */
.features {
    padding: 50px 0;
    background-color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: #e6f4fb;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 30px;
    color: #5bc0eb;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 紧急需求 */
.urgent-demands {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.demands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.demand-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.demand-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.demand-tag.urgent {
    background-color: #dc3545;
    color: white;
}

.demand-card h3 {
    font-size: 18px;
    margin: 15px 0;
    color: #333;
}

.demand-info {
    margin-bottom: 20px;
}

.demand-info p {
    margin-bottom: 8px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demand-info i {
    color: #5bc0eb;
}

.view-more {
    text-align: center;
    margin-top: 20px;
}

/* 使用教程 */
.tutorial {
    padding: 50px 0;
    background-color: white;
}

.tutorial-steps {
    max-width: 800px;
    margin: 0 auto;
}

.tutorial-step {
    display: flex;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease-in-out forwards;
}

.tutorial-step:nth-child(1) { animation-delay: 0.1s; }
.tutorial-step:nth-child(2) { animation-delay: 0.3s; }
.tutorial-step:nth-child(3) { animation-delay: 0.5s; }
.tutorial-step:nth-child(4) { animation-delay: 0.7s; }

.step-number {
    width: 40px;
    height: 40px;
    background-color: #5bc0eb;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    padding-top: 5px;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-grid,
    .demands-grid {
        grid-template-columns: 1fr;
    }
    
    .tutorial-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}